wayland: Remove initial GL API bind
authorBenjamin Otte <otte@redhat.com>
Tue, 5 Oct 2021 22:54:36 +0000 (00:54 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 6 Oct 2021 01:44:36 +0000 (03:44 +0200)
This is leftover from before the addition of GLES support.

GTK works fine without OpenGL and just OpenGLES.

gdk/wayland/gdkglcontext-wayland.c

index 5bec5f101bc7cc3c6cfab026e11f6e35b6d3f13c..287ee5552b3ccc8c9ac2d6af2eb1587830115976 100644 (file)
@@ -396,14 +396,6 @@ gdk_wayland_display_init_gl (GdkDisplay  *display,
                              error))
     return NULL;
 
-  if (!eglBindAPI (EGL_OPENGL_API))
-    {
-      g_set_error_literal (error, GDK_GL_ERROR,
-                           GDK_GL_ERROR_NOT_AVAILABLE,
-                           _("No GL implementation is available"));
-      return NULL;
-    }
-
   return g_object_new (GDK_TYPE_WAYLAND_GL_CONTEXT,
                        "display", display,
                        NULL);